package cn.darkhorse.device.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * IotElectricityTask定时任务中用到的所有数据库操作
 */
public interface IotElectricityDao {
    List<Map<String, Object>> getAllTableName();
    List<Map<String, Object>> getAllDate(@Param("tableName") String tableName,@Param("lastId") Long lastId);
    List<Map<String, Object>> getSaveHistoryData(@Param("fieldWh")String fieldWh, @Param("tableName") String tableName,@Param("date") String date);
    List<Map<String, Object>> getInitialWh(@Param("fieldWh")String fieldWh, @Param("tableName") String tableName,@Param("date") String date);
}
